//var _MODE = envConfig.mode;
var _MODE = 'dev'

//数据接口地址
var baseURL = {
  dev: 'https://api-prd.uidt.net/phanerozoic/bi/v1a',
  //dev: 'https://api-prd.uidt.net/phanerozoic/bi/v1a',
  prod: 'https://api-prd.uidt.net/phanerozoic/bi/v1a',
}[_MODE];


var optimizedBaseUrl = {
  dev: 'https://api.dev.qmrz.net',                    //'https://api-prd.uidt.net/phanerozoic/bi/v1a',
  prod: 'https://api.dev.qmrz.net',                   //'https://api-prd.uidt.net/phanerozoic/bi/v1a',
}[_MODE];


//图片代理地址
var proxyURL = 'https://api-dev.uidt.net/archean/assignment/mj/file/proxy';

//用户列表地址
var userURL = {
  dev: 'https://api-prd.uidt.net/archean/gaservice',
    //dev: 'https://api-prd.uidt.net/archean/gaservice',
  prod: 'https://api-prd.uidt.net/archean/gaservice'
}[_MODE];

var environmentArg = {
    dev: 'dev',
    prod:'prd'
}[_MODE];

// 此处仅在本地开发并使用代理时置为true
const useProxy = false;
if (useProxy) {
  let proxyHost = 'http://localhost:3333';
  userURL = userURL.replace(/http(s?):\/\/.+?(?=\/)/, proxyHost);
}
